package com.wy.authority.service.impl;

import com.wy.authority.entity.SysUser;
import com.wy.authority.mapper.UserMapper;
import com.wy.authority.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 忘忧
 * @Date Created in 2021/1/12 14:25
 * @Description:
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<SysUser> find() {
        return userMapper.find();
    }

    @Override
    public SysUser getUser(String user_name) {
        return userMapper.getUser(user_name);
    }

    @Override
    public SysUser login(SysUser sysUser) {
        return userMapper.login(sysUser);
    }

    @Override
    public SysUser sysuser(String user_id) {
        return userMapper.sysuser(user_id);
    }
}
